/**
 * Copyright (c) 2014- 2015 YCY Group Holding Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.jkwzms.common.entity.search.exception;

import com.jkwzms.common.entity.search.SearchOperator;

/**
 * <p>
 * User: Jack Liang
 * <p>
 * Date: 13-1-17 上午11:59
 * <p>
 * Version:1.0.0
 */
public final class InvlidSearchOperatorException extends SearchException {

    public InvlidSearchOperatorException(String searchProperty, String operatorStr){
        this(searchProperty, operatorStr, null);
    }

    public InvlidSearchOperatorException(String searchProperty, String operatorStr, Throwable cause){
        super("Invalid Search Operator searchProperty [" + searchProperty + "], " + "operator [" + operatorStr
              + "], must be one of " + SearchOperator.toStringAllOperator(), cause);
    }
}
